/* $RCSFile: NameListItem.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/ADNCRM.Core/Design/NameListItem.cs $
 * $log$
 * Revision 6 2010/08/06 19:56:28  christian.surieux
 *   Added Log to All cs files
 */

using System;
using System.Collections;
using System.Configuration;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.IO;

namespace AddonNice.Design
{	
	/// <summary>
    /// NameListItem encapsulates the items of any name/value usefull to display items in a CustomListDataType
	/// Uses IComparable interface to allow sorting by name.
	/// </summary>
	public class NameListItem : IComparable 
	{
        public NameListItem(string nm)
        {
            _name   =   nm;
        }
		
        private string _name;

		/// <summary>
		/// The name of the layout
		/// </summary>
		public string Name 
		{
			get 
			{
				return _name;
			}
			set 
			{
				_name = value;
			}
		}
  
		public int CompareTo(object value) 
		{
			return this.CompareTo((object) Name);
		}
	}
}